import request from '@/utils/request'

// 获取楼栋列表
export const getBuildingList = (query) => {
  return request({
    url: '/system/building/list',
    method: 'post',
    data: query
  })
}
//删除
export const DelBuilding = (query) => {
  return request({
    url: '/system/building/del/'+id,
    method: 'get'
  })
}
//新增
export const AddBuilding = (query) => {
  return request({
    url: '/system/building/add',
    method: 'post',
    data: query
  })
}
//修改
export const UpdateBuilding = (query) => {
  return request({
    url: '/system/building/update',
    method: 'post',
    data: query
  })
}
//酒店详情
export const GetDetail = (id) => {
  return request({
    url: '/system/building/getDetail/'+id,
    method: 'get'
  })
}
